<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  

  
  <title>Hexo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta property="og:type" content="website">
<meta property="og:title" content="Hexo">
<meta property="og:url" content="http://cui-rongpei.gitee.io/blog/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:locale" content="en_US">
<meta property="article:author" content="John Doe">
<meta name="twitter:card" content="summary">
  
    <link rel="alternate" href="/blog/atom.xml" title="Hexo" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  
<link rel="stylesheet" href="/blog/css/style.css">

<meta name="generator" content="Hexo 5.4.2"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/blog/" id="logo">Hexo</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/blog/">Home</a>
        
          <a class="main-nav-link" href="/blog/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/blog/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://cui-rongpei.gitee.io/blog"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main">
  
    <article id="post-深度学习/使用C++编写深度学习框架/gflags入门" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/blog/2022/09/25/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/gflags%E5%85%A5%E9%97%A8/" class="article-date">
  <time datetime="2022-09-25T09:21:17.686Z" itemprop="datePublished">2022-09-25</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/">深度学习</a>►<a class="article-category-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C-%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/">使用C++编写深度学习框架</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/blog/2022/09/25/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/gflags%E5%85%A5%E9%97%A8/">gflags入门</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <p><a target="_blank" rel="noopener" href="http://gflags.github.io/gflags/">http://gflags.github.io/gflags/</a></p>
<p>mkdir test_gflags &amp;&amp; cd test_gflags</p>
<p>vim WORKSPACE</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">load(&quot;@bazel_tools//tools/build_defs/repo:git.bzl&quot;,&quot;git_repository&quot;)</span><br><span class="line">git_repository(</span><br><span class="line">    name = &quot;com_github_gflags_gflags&quot;,</span><br><span class="line">    remote = &quot;https://github.com/gflags/gflags.git&quot;,</span><br><span class="line">    tag = &quot;v2.2.2&quot;</span><br><span class="line">)</span><br></pre></td></tr></table></figure>

<p>vim BUILD</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">cc_binary(</span><br><span class="line">    name = &quot;main&quot;,</span><br><span class="line">    srcs = [&quot;main.cc&quot;],</span><br><span class="line">    deps = [&quot;@com_github_gflags_gflags//:gflags&quot;]</span><br><span class="line">)</span><br></pre></td></tr></table></figure>

<p>vim main.cc</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">#include&lt;iostream&gt;</span><br><span class="line">int main()&#123;</span><br><span class="line">    </span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>


      
    </div>
    <footer class="article-footer">
      <a data-url="http://cui-rongpei.gitee.io/blog/2022/09/25/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/gflags%E5%85%A5%E9%97%A8/" data-id="cl8h5o79a000hsot9eqqm9g47" class="article-share-link">Share</a>
      
      
    </footer>
  </div>
  
</article>


  
    <article id="post-深度学习/使用C++编写深度学习框架/glog入门" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/blog/2022/09/25/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/glog%E5%85%A5%E9%97%A8/" class="article-date">
  <time datetime="2022-09-25T08:17:42.738Z" itemprop="datePublished">2022-09-25</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/">深度学习</a>►<a class="article-category-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C-%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/">使用C++编写深度学习框架</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/blog/2022/09/25/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/glog%E5%85%A5%E9%97%A8/">glog入门</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <p>参考：<a target="_blank" rel="noopener" href="https://github.com/google/glog">https://github.com/google/glog</a> 的Build from Source</p>
<h1 id="构建glog"><a href="#构建glog" class="headerlink" title="构建glog"></a>构建glog</h1><p>mkdir test_glog &amp;&amp; cd test_glog</p>
<p>vim WORKSPACE</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">load(&quot;@bazel_tools//tools/build_defs/repo:http.bzl&quot;, &quot;http_archive&quot;)</span><br><span class="line"></span><br><span class="line">http_archive(</span><br><span class="line">    name = &quot;com_github_gflags_gflags&quot;,</span><br><span class="line">    sha256 = &quot;34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf&quot;,</span><br><span class="line">    strip_prefix = &quot;gflags-2.2.2&quot;,</span><br><span class="line">    urls = [&quot;https://github.com/gflags/gflags/archive/v2.2.2.tar.gz&quot;],</span><br><span class="line">)</span><br><span class="line"></span><br><span class="line">http_archive(</span><br><span class="line">    name = &quot;com_github_google_glog&quot;,</span><br><span class="line">    sha256 = &quot;122fb6b712808ef43fbf80f75c52a21c9760683dae470154f02bddfc61135022&quot;,</span><br><span class="line">    strip_prefix = &quot;glog-0.6.0&quot;,</span><br><span class="line">    urls = [&quot;https://github.com/google/glog/archive/v0.6.0.zip&quot;],</span><br><span class="line">)</span><br></pre></td></tr></table></figure>

<p>vim build</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">cc_binary(</span><br><span class="line">    name = &quot;main&quot;,</span><br><span class="line">    srcs = [&quot;main.cc&quot;],</span><br><span class="line">    deps = [&quot;@com_github_google_glog//:glog&quot;],</span><br><span class="line">)</span><br></pre></td></tr></table></figure>

<p>vim main.cc</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">#include&lt;iostream&gt;</span><br><span class="line">int main()&#123;&#125;</span><br></pre></td></tr></table></figure>

<p>Building from Source</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">bazel build //:main</span><br></pre></td></tr></table></figure>

<h1 id="Getting-Start"><a href="#Getting-Start" class="headerlink" title="Getting Start!"></a>Getting Start!</h1><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">#include&lt;iostream&gt;</span><br><span class="line">#include&lt;glog/logging.h&gt;   //头文件</span><br><span class="line">int main(int argc, char * argv[])&#123;</span><br><span class="line">	google::InitGoogleLogging(argv[0]); //初始化</span><br><span class="line">	LOG(ERROR) &lt;&lt; &quot;hello world!&quot;;</span><br><span class="line">	google::ShutdownGoogleLogging();   //销毁</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<p>几个比较重要的宏</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">FLAGS_logtostderr = true;//设置日志消息是否转到标准输出而不是日志文件</span><br><span class="line">FLAGS_alsologtostderr = true;//设置日志消息除了日志文件之外是否输出到标准输出</span><br><span class="line">FLAGS_colorlogtostderr = true;//设置日志消息颜色</span><br><span class="line">FLAGS_log_prefix = true;//设置日志前缀是否应该添加到每行输出</span><br><span class="line">FLAGS_logbufsecs = 0;//设置可以缓冲日志的最大秒数，0指实时输出</span><br><span class="line">FLAGS_max_log_size = 10;//设置最大日志文件大小（以MB为单位），超过会对文件进行分割</span><br><span class="line">FLAGS_stop_logging_if_full_disk = true;//设置是否在磁盘已满时避免日志记录到磁盘</span><br><span class="line">FLAGS_minloglevel = google::GLOG_WARNING;//设置最小处理日志的级别</span><br></pre></td></tr></table></figure>


      
    </div>
    <footer class="article-footer">
      <a data-url="http://cui-rongpei.gitee.io/blog/2022/09/25/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/glog%E5%85%A5%E9%97%A8/" data-id="cl8h5o797000esot9gjfuc49a" class="article-share-link">Share</a>
      
      
    </footer>
  </div>
  
</article>


  
    <article id="post-深度学习/使用C++编写深度学习框架/bazel入门" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/blog/2022/09/25/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/bazel%E5%85%A5%E9%97%A8/" class="article-date">
  <time datetime="2022-09-25T01:46:08.706Z" itemprop="datePublished">2022-09-25</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/">深度学习</a>►<a class="article-category-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C-%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/">使用C++编写深度学习框架</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/blog/2022/09/25/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/bazel%E5%85%A5%E9%97%A8/">bazel入门</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h1 id="安装bazel-3-1-0"><a href="#安装bazel-3-1-0" class="headerlink" title="安装bazel-3.1.0"></a>安装bazel-3.1.0</h1><p>install requied packages</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo apt install g++ unzip zip</span><br><span class="line">sudo apt install openjdk-11-jdk</span><br></pre></td></tr></table></figure>

<p>下载安装</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">wget https://github.com/bazelbuild/bazel/releases/download/3.1.0/bazel-3.1.0-installer-linux-x86_64.sh</span><br><span class="line">chmod +x bazel-3.1.0-installer-linux-x86_64.sh</span><br><span class="line">./bazel-3.1.0-installer-linux-x86_64.sh --user</span><br></pre></td></tr></table></figure>

<h1 id="使用bazel编译构建C项目"><a href="#使用bazel编译构建C项目" class="headerlink" title="使用bazel编译构建C项目"></a>使用bazel编译构建C项目</h1><p>bazel官方文档：<a target="_blank" rel="noopener" href="https://bazel.build/start/cpp">https://bazel.build/start/cpp</a></p>
<p><strong>WORKSPACE</strong>:包含bazel资源，并且是项目的根</p>
<p><strong>bazel build //…:target</strong>   编译</p>
<p><strong>bazel run //…:target</strong>     运行</p>
<p>build 文件书写</p>
<p>cc_binary() 生成可执行文件，生成库文件，供外界使用</p>
<p>cc_library() 生成库文件，自动会添加libxx.so(xx)，对内使用</p>
<p>visbility:public 表示我们的可见域</p>
<p>更多详细信息参考官方文档：<a target="_blank" rel="noopener" href="https://bazel.build/reference/be/c-cpp">https://bazel.build/reference/be/c-cpp</a></p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://cui-rongpei.gitee.io/blog/2022/09/25/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/bazel%E5%85%A5%E9%97%A8/" data-id="cl8h5o795000dsot9h3be31j6" class="article-share-link">Share</a>
      
      
    </footer>
  </div>
  
</article>


  
    <article id="post-深度学习/使用C++编写深度学习框架/使用C++编写深度学习框架" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/blog/2022/09/24/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/" class="article-date">
  <time datetime="2022-09-24T15:05:55.059Z" itemprop="datePublished">2022-09-24</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/">深度学习</a>►<a class="article-category-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C-%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/">使用C++编写深度学习框架</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/blog/2022/09/24/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/">前言 环境准备</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h1 id="实现的小目标"><a href="#实现的小目标" class="headerlink" title="实现的小目标"></a>实现的小目标</h1><p>实现一个卷积神经网络的训练和计算框架</p>
<ul>
<li>支持卷积操作（最基础的功能）</li>
<li>支持算子扩充</li>
<li>支持GPU加速</li>
</ul>
<h1 id="需要熟悉的框架和工具"><a href="#需要熟悉的框架和工具" class="headerlink" title="需要熟悉的框架和工具"></a>需要熟悉的框架和工具</h1><p>1、Bazel编译工具</p>
<p>2、ProtoBuf库</p>
<p>3、Glog库</p>
<p>4、Gtest库</p>
<p>5、GFlags库</p>
<p>6、BLAS库</p>
<p>7、HDF5库</p>
<p>8、OpenCV库</p>
<p>9、CUDA库</p>
<p>10、Caffe深度学习框架</p>
<p>11、Darknet深度学习框架</p>
<p>12、Jni编程</p>
<p>13、Pybind11编程</p>
<h3 id="解决虚拟机访问不了github"><a href="#解决虚拟机访问不了github" class="headerlink" title="解决虚拟机访问不了github"></a>解决虚拟机访问不了github</h3><p>在网站<a target="_blank" rel="noopener" href="https://www.ipaddress.com/">https://www.ipaddress.com/</a> 分别搜索</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">github.global.ssl.fastly.net</span><br><span class="line">github.com</span><br></pre></td></tr></table></figure>

<p>得到ip</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">199.232.69.194</span><br><span class="line">140.82.112.4</span><br></pre></td></tr></table></figure>

<p>修改hosts文件：vim /etc/hosts<br>在hosts文件末尾添加两行(对应上面查到的ip)</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">199.232.69.194  github.global.ssl.fastly.net</span><br><span class="line">140.82.112.4  github.com</span><br></pre></td></tr></table></figure>

<p> 完成 再试一下git clone</p>
<h2 id="vscode连接虚拟机"><a href="#vscode连接虚拟机" class="headerlink" title="vscode连接虚拟机"></a>vscode连接虚拟机</h2><p>本来之前配置好的环境，但是不知道怎么出了点问题，废了很久时间还没解决，索性重新安装一遍虚拟机从头记录一下</p>
<h3 id="虚拟机安装ubuntu20-04-（略）"><a href="#虚拟机安装ubuntu20-04-（略）" class="headerlink" title="虚拟机安装ubuntu20.04 （略）"></a>虚拟机安装ubuntu20.04 （略）</h3><h3 id="ubuntun-换源"><a href="#ubuntun-换源" class="headerlink" title="ubuntun 换源"></a>ubuntun 换源</h3><p>vi /etc/apt/sources.list 粘贴如下内容</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse</span><br><span class="line">deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse</span><br><span class="line"></span><br><span class="line">deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse</span><br><span class="line">deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse</span><br><span class="line"></span><br><span class="line">deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse</span><br><span class="line">deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse</span><br><span class="line"></span><br><span class="line"># deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse</span><br><span class="line"># deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse</span><br><span class="line"></span><br><span class="line">deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse</span><br><span class="line">deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse</span><br><span class="line"></span><br></pre></td></tr></table></figure>

<p>换源后记得更新包</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt update</span><br></pre></td></tr></table></figure>

<p>安装必要的软件</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">sudo apt install net-tools</span><br><span class="line">sudo apt install vim</span><br><span class="line">sudo apt install g++</span><br></pre></td></tr></table></figure>



<h3 id="安装openssh-server"><a href="#安装openssh-server" class="headerlink" title="安装openssh-server"></a>安装openssh-server</h3><p>打开终端安装openssh-server软件包：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo apt update  # 更新包</span><br><span class="line">sudo apt install openssh-server  # 安装openssh-server</span><br></pre></td></tr></table></figure>

<p>安装完成后，ssh服务默认启动了，可以通过下面的命令检查服务运行状态：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo systemctl status ssh</span><br></pre></td></tr></table></figure>

<p>注意“active”是“running”，说明ssh服务启动了</p>
<h3 id="防火墙开启ssh端口"><a href="#防火墙开启ssh端口" class="headerlink" title="防火墙开启ssh端口"></a>防火墙开启ssh端口</h3><p>Ubuntu 默认使用 ufw 防火墙配置工具，如果启用了防火墙，需要让防火墙开启ssh端口：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo ufw allow ssh</span><br></pre></td></tr></table></figure>

<h3 id="配置允许远程访问"><a href="#配置允许远程访问" class="headerlink" title="配置允许远程访问"></a>配置允许远程访问</h3><p>使用sudo权限，编辑ssh的配置文件。</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo vim /etc/ssh/sshd_config</span><br></pre></td></tr></table></figure>

<p>将#PermitRootLogin prohibit-password中prohibit-password去掉改为yes，并把PermitRootLogin yes之前的#去掉：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">PermitRootLogin yes</span><br></pre></td></tr></table></figure>

<p>重启ssh服务</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">service sshd restart</span><br></pre></td></tr></table></figure>

<h3 id="vscode连接ssh服务"><a href="#vscode连接ssh服务" class="headerlink" title="vscode连接ssh服务"></a>vscode连接ssh服务</h3><p>在虚拟机中查看ip地址</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ifconfig</span><br></pre></td></tr></table></figure>

<p>使用ens33的inet 比如我的是192.168.204.128</p>
<p>然后在vscode中,hunter是我虚拟机的用户名</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ssh hunter@192.168.204.128</span><br></pre></td></tr></table></figure>

<p>ok，连接上了完美。</p>
<p>之前一直没弄上是因为虚拟机不知道怎么回事上不去网…</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://cui-rongpei.gitee.io/blog/2022/09/24/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/" data-id="cl8h5o79c000isot916lhgwy8" class="article-share-link">Share</a>
      
      
    </footer>
  </div>
  
</article>


  
    <article id="post-深度学习/环境搭建/超算平台深度学习环境搭建" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/blog/2022/09/24/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/%E8%B6%85%E7%AE%97%E5%B9%B3%E5%8F%B0%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/" class="article-date">
  <time datetime="2022-09-24T15:01:26.199Z" itemprop="datePublished">2022-09-24</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/">深度学习</a>►<a class="article-category-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/">深度学习环境搭建</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/blog/2022/09/24/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/%E8%B6%85%E7%AE%97%E5%B9%B3%E5%8F%B0%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/">超算平台深度学习环境搭建</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        
      
    </div>
    <footer class="article-footer">
      <a data-url="http://cui-rongpei.gitee.io/blog/2022/09/24/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/%E8%B6%85%E7%AE%97%E5%B9%B3%E5%8F%B0%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/" data-id="cl8h5o792000asot94o1lca1j" class="article-share-link">Share</a>
      
      
    </footer>
  </div>
  
</article>


  
    <article id="post-深度学习/深度学习" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/blog/2022/09/24/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/" class="article-date">
  <time datetime="2022-09-24T15:00:23.808Z" itemprop="datePublished">2022-09-24</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/">深度学习</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/blog/2022/09/24/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/">深度学习</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        
      
    </div>
    <footer class="article-footer">
      <a data-url="http://cui-rongpei.gitee.io/blog/2022/09/24/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/" data-id="cl8h5o78y0007sot9gnrj6o66" class="article-share-link">Share</a>
      
      
    </footer>
  </div>
  
</article>


  
    <article id="post-论文笔记" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/blog/2022/09/24/%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/" class="article-date">
  <time datetime="2022-09-24T14:59:51.435Z" itemprop="datePublished">2022-09-24</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/blog/categories/%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/">论文笔记</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/blog/2022/09/24/%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/">论文笔记</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        
      
    </div>
    <footer class="article-footer">
      <a data-url="http://cui-rongpei.gitee.io/blog/2022/09/24/%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/" data-id="cl8h5o78u0005sot9a4830qyy" class="article-share-link">Share</a>
      
      
    </footer>
  </div>
  
</article>


  
    <article id="post-学习规划" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/blog/2022/09/22/%E5%AD%A6%E4%B9%A0%E8%A7%84%E5%88%92/" class="article-date">
  <time datetime="2022-09-22T09:10:30.410Z" itemprop="datePublished">2022-09-22</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/blog/categories/%E8%BF%91%E6%9C%9F%E8%A7%84%E5%88%92/">近期规划</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/blog/2022/09/22/%E5%AD%A6%E4%B9%A0%E8%A7%84%E5%88%92/">近期规划</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h1 id="入学前规划"><a href="#入学前规划" class="headerlink" title="入学前规划"></a>入学前规划</h1><h2 id="C-C-CUDA"><a href="#C-C-CUDA" class="headerlink" title="C/C++/CUDA"></a>C/C++/CUDA</h2><p>1、实现严蔚敏C语言版《数据结构》上所有代码</p>
<p>2、看完黑马程序员C++入门视频</p>
<p>3、啃《C++ Primer》</p>
<p>4、重新学习各种经典、AI方面算法</p>
<p>5、学习CUDA编程，突破深度学习性能瓶颈</p>
<h1 id="人工智能"><a href="#人工智能" class="headerlink" title="人工智能"></a>人工智能</h1><p>1、学习“东方耀888”B站up主所有视频，了解基本知识</p>
<p>2、【李沐】动手学深度学习</p>
<p>2、学习吴恩达机器学习系列课程</p>
<p>3、论文方面每周看1篇业内相关论文</p>
<p>4、复现第二、三届先导杯人工智能赛题（智能交通检测、自动驾驶），了解落地项目的实现过程</p>
<h1 id="博弈论、强化学习"><a href="#博弈论、强化学习" class="headerlink" title="博弈论、强化学习"></a>博弈论、强化学习</h1><p>1、学习《白话强化学习与pytroch》</p>
<p>2、学习B站《李宏毅的强化学习》</p>
<p>3、学习B站《博弈论》</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://cui-rongpei.gitee.io/blog/2022/09/22/%E5%AD%A6%E4%B9%A0%E8%A7%84%E5%88%92/" data-id="cl8h5o78n0003sot9d4oob3ve" class="article-share-link">Share</a>
      
      
    </footer>
  </div>
  
</article>


  
    <article id="post-深度学习/东方耀" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/blog/2022/09/19/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%B8%9C%E6%96%B9%E8%80%80/" class="article-date">
  <time datetime="2022-09-19T01:14:07.597Z" itemprop="datePublished">2022-09-19</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/">深度学习</a>►<a class="article-category-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%B8%9C%E6%96%B9%E8%80%80%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0/">东方耀机器学习</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/blog/2022/09/19/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%B8%9C%E6%96%B9%E8%80%80/">东方耀机器学习</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <p>课堂笔记</p>
<p><a target="_blank" rel="noopener" href="http://www.ai111.vip/forum.php?mod=forumdisplay&amp;fid=40&amp;filter=typeid&amp;typeid=18">http://www.ai111.vip/forum.php?mod=forumdisplay&amp;fid=40&amp;filter=typeid&amp;typeid=18</a></p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://cui-rongpei.gitee.io/blog/2022/09/19/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%B8%9C%E6%96%B9%E8%80%80/" data-id="cl8h5o78x0006sot92tzsapdc" class="article-share-link">Share</a>
      
      
    </footer>
  </div>
  
</article>


  
    <article id="post-深度学习/环境搭建/深度学习环境搭建" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/blog/2022/09/18/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/" class="article-date">
  <time datetime="2022-09-18T13:21:31.435Z" itemprop="datePublished">2022-09-18</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/">深度学习</a>►<a class="article-category-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/">深度学习环境搭建</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/blog/2022/09/18/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/">Win10 1050Ti搭建tensorflow-gpu环境</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <p>参考：<a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_38899860/article/details/106067102">https://blog.csdn.net/weixin_38899860/article/details/106067102</a></p>
<p>**CUDA9.0.176_win10:**<a target="_blank" rel="noopener" href="https://developer.nvidia.com/cuda-90-download-archive">https://developer.nvidia.com/cuda-90-download-archive</a></p>
<p>**Cudnn7.3.1:**<a target="_blank" rel="noopener" href="https://developer.nvidia.com/rdp/cudnn-archive">https://developer.nvidia.com/rdp/cudnn-archive</a></p>
<p>cuda与驱动对应关系</p>
<p><img src="/blog/1050Ti.assets/cuda%E4%B8%8E%E9%A9%B1%E5%8A%A8%E5%AF%B9%E5%BA%94%E5%85%B3%E7%B3%BB-1663572924503.png" alt="cuda与驱动对应关系"></p>
<p>cuda与tensorflow对应关系</p>
<p><img src="/blog/1050Ti.assets/cuda%E4%B8%8Etensorflow%E5%AF%B9%E5%BA%94%E5%85%B3%E7%B3%BB-1663572940070.png" alt="cuda与tensorflow对应关系"></p>
<h2 id="解压Cudnn"><a href="#解压Cudnn" class="headerlink" title="解压Cudnn"></a>解压Cudnn</h2><p>可以看到bin、include、lib目录<br>打开 C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA<br>找到你安装的版本目录，打开，找到bin、include、lib目录，将cuDNN压缩包内对应的文件复制到bin、include、lib目录。<br>注意：是复制文件到bin、include、lib目录，不是复制目录。</p>
<h2 id="添加PATH环境变量（根据自己路径设置）"><a href="#添加PATH环境变量（根据自己路径设置）" class="headerlink" title="添加PATH环境变量（根据自己路径设置）"></a>添加PATH环境变量（根据自己路径设置）</h2><p>记得添加环境变量到path</p>
<p>C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\lib\x64</p>
<h2 id="检查安装结果"><a href="#检查安装结果" class="headerlink" title="检查安装结果"></a>检查安装结果</h2><p>在cmd窗口输入nvcc -V</p>
<h2 id="安装tensorflow-gpu"><a href="#安装tensorflow-gpu" class="headerlink" title="安装tensorflow-gpu"></a>安装tensorflow-gpu</h2><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">conda create -n tf_1.10 python=3.6</span><br><span class="line">python -m pip install --upgrade pip</span><br><span class="line">pip install --ignore-installed --upgrade tensorflow-gpu==1.10.0 -i https://pypi.douban.com/simple/</span><br></pre></td></tr></table></figure>

<h2 id="验证tensorflow是否连上gpu"><a href="#验证tensorflow是否连上gpu" class="headerlink" title="验证tensorflow是否连上gpu"></a>验证tensorflow是否连上gpu</h2><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">python</span><br><span class="line">from tensorflow.python.client import device_lib</span><br><span class="line">print(device_lib.list_local_devices())</span><br></pre></td></tr></table></figure>

<p>删除环境</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">conda remove -n your_env_name(虚拟环境名称) --all</span><br></pre></td></tr></table></figure>



<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">conda install cudatoolkit=9.0 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64/</span><br><span class="line"></span><br><span class="line">conda install cudnn=7.6.4 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/</span><br></pre></td></tr></table></figure>

<figure class="highlight crystal"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">-i <span class="symbol">https:</span>/<span class="regexp">/pypi.tuna.tsinghua.edu.cn/simple</span></span><br><span class="line">-i <span class="symbol">https:</span>/<span class="regexp">/mirrors.aliyun.com/pypi</span><span class="regexp">/simple</span></span><br></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://stackoverflow.com/questions/64662085/fix-not-load-dynamic-library-for-tensorflow-gpu">https://stackoverflow.com/questions/64662085/fix-not-load-dynamic-library-for-tensorflow-gpu</a></p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://cui-rongpei.gitee.io/blog/2022/09/18/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/" data-id="cl8h5o7910009sot91z2te9ub" class="article-share-link">Share</a>
      
      
    </footer>
  </div>
  
</article>


  


  <nav id="page-nav">
    
    <span class="page-number current">1</span><a class="page-number" href="/blog/page/2/">2</a><a class="extend next" rel="next" href="/blog/page/2/">Next &amp;raquo;</a>
  </nav>

</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Categories</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/blog/categories/C-C/">C/C++</a></li><li class="category-list-item"><a class="category-list-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/">深度学习</a><ul class="category-list-child"><li class="category-list-item"><a class="category-list-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%B8%9C%E6%96%B9%E8%80%80%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0/">东方耀机器学习</a></li><li class="category-list-item"><a class="category-list-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C-%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/">使用C++编写深度学习框架</a></li><li class="category-list-item"><a class="category-list-link" href="/blog/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/">深度学习环境搭建</a></li></ul></li><li class="category-list-item"><a class="category-list-link" href="/blog/categories/%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/">论文笔记</a></li><li class="category-list-item"><a class="category-list-link" href="/blog/categories/%E8%BF%91%E6%9C%9F%E8%A7%84%E5%88%92/">近期规划</a></li></ul>
    </div>
  </div>


  
    

  
    
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2022/09/">September 2022</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/blog/2022/09/25/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/gflags%E5%85%A5%E9%97%A8/">gflags入门</a>
          </li>
        
          <li>
            <a href="/blog/2022/09/25/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/glog%E5%85%A5%E9%97%A8/">glog入门</a>
          </li>
        
          <li>
            <a href="/blog/2022/09/25/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/bazel%E5%85%A5%E9%97%A8/">bazel入门</a>
          </li>
        
          <li>
            <a href="/blog/2022/09/24/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/%E4%BD%BF%E7%94%A8C++%E7%BC%96%E5%86%99%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/">前言 环境准备</a>
          </li>
        
          <li>
            <a href="/blog/2022/09/24/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/%E8%B6%85%E7%AE%97%E5%B9%B3%E5%8F%B0%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/">超算平台深度学习环境搭建</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2022 John Doe<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/blog/" class="mobile-nav-link">Home</a>
  
    <a href="/blog/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  
<link rel="stylesheet" href="/blog/fancybox/jquery.fancybox.css">

  
<script src="/blog/fancybox/jquery.fancybox.pack.js"></script>




<script src="/blog/js/script.js"></script>




  </div>
</body>
</html>